package com.zang.blogz.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zang.blogz.model.output.BlogVO;
import com.zang.blogz.result.Result;
import com.zang.blogz.service.BlogService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author Cizai
 * @since 2022/12/11 19:58
 **/
@Api(tags = "BlogInfoController")
@RestController
@RequestMapping("/blog")
public class BlogInfoController {
    @Resource
    private BlogService blogService;

    @ApiOperation("获取博客仪表盘信息")
    @GetMapping("/getBlogInfo")
    public Result<BlogVO> getBlogInfo() {
        return Result.ok(blogService.getBlogInfo());
    }
}
